import GlobalLoader from '@/components/loading/global-loader';
/**
 * @todo 不给文件后缀，省略index文件名，ts报错，暂时ts-ignore
 */
export const RootPage = defineAsyncComponent({
  // @ts-ignore
  loader: () => import('@/layout'),
});
// @ts-ignore
export const LoginPage = defineAsyncComponent(() => import('@/views/modules/login'));
export const NotFoundPage = defineAsyncComponent(() => import('@/components/common/404.vue'));
// @ts-ignore
export const MainPage = () => import('@/layout/main/app-main');

// menu component
export const MusicDiscovery = () => import('@/views/modules/main/music-discovery');
export const Podcast = () => import('@/views/modules/main/podcast');
export const Video = () => import('@/views/modules/main/video');
export const Follow = () => import('@/views/modules/main/follow');
export const PrivateRoaming = () => import('@/views/modules/main/private-roaming');
export const MyFavoriteMusic = () => import('@/views/modules/main/my-favorite-music');
export const LocalAndDownload = () => import('@/views/modules/main/local-and-download');
export const RecentlyPlayed = () => import('@/views/modules/main/recently-played');
export const MyMusicCloudDisk = () => import('@/views/modules/main/my-music-cloud-disk');
export const MyPodcast = () => import('@/views/modules/main/my-podcast');
export const MyCollection = () => import('@/views/modules/main/my-collection');
export const PlayList = () => import('@/views/modules/main/play-list');
